<template>
	<view class="w100">
		 <view class="tCenter w100 pT30 mT30">
		 	<icon type="success" color='#09BB07' size="70"/>
			<view class="f18 pT5">
				<span class="boldfont"> 提交成功</span>
				<view class="">
					您的信息已提交成功
				</view>
			</view>
			<view class="details" @click="details()">
				确认
			</view>
		 </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showtype:'',
			}
		},
		onLoad(event) {
			if(event.type){
				this.showtype=event.type
			}
		},
		methods: {
			details(){
				var thisurl = sessionStorage.getItem("locationhref");
				if (thisurl) {
					if(thisurl=='pages/shouquan/shenfen'){
						uni.reLaunch({
							url:'/pages/yaoqing/useraddvisitors'
						  });
					}else{
						var newhrf = "/" + thisurl;
							sessionStorage.setItem("locationhref",'');
							sessionStorage.setItem("skippage",'') 
						
						uni.reLaunch({
						    url: newhrf
						});	
					}
				    
				}else{
					if(this.showtype=='yuyue'){
						uni.reLaunch({
							url:'/pages/yaoqing/useraddvisitors'
						  });
					}else{
						uni.reLaunch({
							url:'/pages/myyuyue/myyuyue?type=1'
						  });
					}
				}
				
			}
		}
	}
</script>

<style scoped>
	.boldfont{font-size: 18px;}
	.details{
		width: 70%;
		margin: 0 auto;
			height: 42px;
			color: #fff;
			background-color: #007aff;
			border-radius: 8px;
			font-size: 15px;
			line-height: 42px;
			text-align: center;
			margin-top: 20px;
			margin-bottom: 5px;
	}
</style>
